package com.ruoyi.event.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.UserDrugInfo;
import com.ruoyi.common.annotation.UserMemberInfo;
import lombok.Data;

import java.util.Date;


/**
 * 家访记录视图对象 event_jf
 *
 * @author strongme
 * @date 2023-02-04
 */
@Data
@ExcelIgnoreUnannotated
public class EventJfVo implements EventInfo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long jfId;

    /**
     * 吸毒人员id
     */
    @ExcelProperty(value = "吸毒人员id")
    private Long userId;

    @UserDrugInfo
    public Object getUserInfo() {
        return userId;
    }

    /**
     * 工作人员id
     */
    @ExcelProperty(value = "工作人员id")
    private Long memberId;

    @UserMemberInfo
    public Object getMemberInfo() {
        return memberId;
    }

    /**
     * 家访日期
     */
    @ExcelProperty(value = "家访日期")
    private Date jfrq;

    /**
     * 家访地点
     */
    @ExcelProperty(value = "家访地点")
    private String jfdd;

    /**
     * 家访内容
     */
    @ExcelProperty(value = "家访内容")
    private String jfnr;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String img;

    /**
     * 附件
     */
    @ExcelProperty(value = "附件")
    private String fj;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


    @Override
    public Long getId() {
        return jfId;
    }

    @Override
    public String getText() {
        return jfdd;
    }

    @Override
    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getTime() {
        return jfrq;
    }
}
